import Vue from "vue";
import Vuex from "vuex";
// import createLogger from 'vuex/dist/logger';
// 引入模块
import user from "./modules/user";
import home from "./modules/home";
import live from "./modules/live";
import category from "./modules/category";
import order from "./modules/order"
import search from './modules/search'
import address from "./modules/address";
import prod from './modules/prod';
import cart from "./modules/cart";
import submitorder from "./modules/submitorder";
Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    user,
    cart,
    home,
    live,
    category,
    order,
    search,
    prod,
    address,
    submitorder
  },
  // plugins: [createLogger()]
});
